<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>fullONsms.com</title>
    <style type="text/css">
        body
        {
            margin: 2px;
        }
        .hide
        {
            display: none;
        }
        .header
        {
            border: thin solid #454545;
            background-color: DarkGray;
            padding: 2;
            margin: 2;
        }
        .header .title
        {
            width: 100%;
            text-align: center;
            font-size: large;
            font-family: Arial;
            font-weight: bold;
            color: #FFFFFF;
        }
        .center
        {
            text-align: center;
        }
        .left
        {
            position: absolute;
            left: 6px;
            margin: 0 0 0 4;
            top: 8px;
        }
        .right
        {
            position: absolute;
            right: 6;
            margin: 0 4 0 0;
            top: 8;
        }
        .sms
        {
            min-width: 100px;
            height: auto;
            width: 100%;
        }
        .mobile
        {
            padding: 0px;
            width: 100%;
            margin: 0px;
        }
        .divWhole
        {
            margin: 0;
            border: thin solid #C0C0C0;
        }
        .content
        {
            padding: 2;
            margin: 0 2;
        }
    </style>
    <script type="text/javascript">
        function $(d) { return document.getElementById(d); }
        function getQueryVariable(variable) {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (pair[0] == variable) {
                    return pair[1];
                }
            }
        }

        function saveSettings() {
            $("hdnU").value = $("txtPhone").value;
            $("hdnPwd").value = $("txtPassword").value;
            return displayMain();
        }
        function cancelSettings() {
            $("txtPhone").value = $("hdnU").value;
            $("txtPassword").value = $("hdnPwd").value;
            return displayMain();
        }
        function displayMain() {
            $("divSettings").className = "hide";
            $("divMain").className = "";
        }
        function displaySettings() {
            $("divSettings").className = "";
            $("divMain").className = "hide";
            return false;
        }


        function loadUserPwd() {
            try {
                $("divSettings").className = "hide";

                var u = getQueryVariable("u");

                if (u != null && u != "") {
                    $("hdnU").value = u;
                    $("txtPhone").value = u;
                }
                else {
                    $("divSettings").className = "";
                    $("divMain").className = "hide";
                }

                var p = getQueryVariable("p");


                if (p != null && p != "") {
                    $("txtPassword").value = p;
                    $("hdnPwd").value = p;
                }
                else {
                    $("divSettings").className = "";
                    $("divMain").className = "hide";
                }

                var t = getQueryVariable("t");
                if (t != null && t != "") 
                    $("hdnType").value = p;                
                                    
                
            }
            catch (ex) {
                alert("error occurred");
            }
        }        
    </script>
</head>
<body onload="loadUserPwd()">
    <div class="divWhole">
        <form method="post" action="http://aspspider.net/manishrawat4u/smshandler.ashx" style="margin: 0;">
        <div id="divMain">
            <div class="header">
                <div class="title">
                    SMS</div>
                <a href="#" onclick="return displaySettings()" class="right">Options</a>
            </div>
            <div class="content">
                <span>Mobile</span>
                <div>
                    <input type="text" value="" id="txtMobileNo" name="n" class="mobile" /><br />
                </div>
                <span>SMS</span>
                <textarea rows="4" cols="10" id="txtSMS" name="m" class="sms"></textarea>
                <input type="hidden" id="hdnU" name="u" />
                <input type="hidden" id="hdnPwd" name="p" />
                <input type="hidden" id="hdnType" name="t" />
                <input type="submit" id="btnSend" value="Send SMS" />
            </div>
        </div>
        <div id="divSettings">
            <div class="header">
                <div class="title">
                    fullOn SMS Settings</div>
                <a href="#" onclick="return cancelSettings()" class="left">Cancel</a> <a href="#"
                    onclick="return saveSettings()" class="right">Save</a>
            </div>
            <div class="content">
                <div>
                    Mobile</div>
                <input id="txtPhone" type="text" />
                <div>
                    Password</div>
                <input id="txtPassword" type="password" />
            </div>
        </div>
        </form>
    </div>
</body>
</html>
